<?
session_start();
require("includes/constants.php");

if(!isset($_SESSION['idUsusario'])){
	Header("Location: index.html");
	exit();
}

?>
<!DOCTYPE HTML>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html" />
	<title>Escribania General de la Naci&oacute;n</title>
	<style type="text/css" title="currentStyle">
			@import "js/datatables/css/demo_table_jui.css";
			@import "js/datatables/themes/smoothness/jquery-ui-1.8.4.custom.css";
			@import "css/css.css";
	</style>
	
	<!-- JQuery Script -->
	<script type="text/javascript" src="js/jquery/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.ui.core.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.ui.tabs.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.ui.dialog.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.ui.mouse.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.ui.draggable.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.ui.position.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.ui.resizable.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.ui.autocomplete.min.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.effects.core.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.effects.blind.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.effects.explode.js"></script>	
	<script type="text/javascript" src="js/jquery/jquery.ui.datepicker.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.validate.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.numeric.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.mousewheel.js"></script>
	<script type="text/javascript" src="js/jquery/jshashtable-2.1.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.numberformatter-1.2.3.min.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.maskedinput-1.2.2.min.js"></script>
	<script type="text/javascript" src="js/jquery/NumberFormat154.js"></script>
	
	<!-- Data Tables -->
	<script src="js/datatables/js/jquery.dataTables.js" type="text/javascript" ></script>
	<script src="js/datatables/media/js/jquery.jeditable.js" type="text/javascript"></script>
    <script src="js/datatables/media/js/jquery-ui.js" type="text/javascript"></script>
    <script src="js/datatables/media/js/jquery.validate.js" type="text/javascript"></script>
    <script src="js/datatables/media/js/jquery.dataTables.editable.js" type="text/javascript"></script>
    
    <!-- Tools Script -->
	<script src="js/utils.js" type="text/javascript"></script>
</head>

<body>
	<div id="cont">
		<!-- Header -->
		<? include_once('layout/header.php');?>
		
		<!-- Body -->
		<?
		switch ($_REQUEST['pantalla']) {								
			case 'usuarios':
				include_once('usuarios.php');
				break;

			case 'titulos':
				include_once('titulos.php');
				break;

			case 'busqueda':
				include_once('busqueda.php');
				break;				

			default:
				break;
		}
		?>

		<!-- Footer -->
		<? include_once('layout/footer.php');?>
	</div>
	
<!-- Global Message -->
<div id="globalMess"> 
	<div class="img"></div>
	<div id="globalMessImgClose" class="imgClose"></div>
	<div id="tituloMess" class="msgTitulo">TITULO</div>
	<p id="textoMess" class="msgTexto">MENSAJE</p>
</div>

</body>

</html>